package enrique.kurso.lecionoj;


import android.app.Activity;
import android.content.Context;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import enrique.kurso.R;

public class Leciono0103 extends Activity{
	
	 Button yo,tu,el,ella,eso,nosotros,vosotros,ellos,uno,se;
	 OnClickListener onClick;
	 MediaPlayer mp;
	 @Override
	 public void onCreate(Bundle savedInstanceState) { 
		 super.onCreate(savedInstanceState);
		 setContentView(R.layout.leciono01032);
		 yo = (Button) findViewById(R.id.botonYo);
		 tu = (Button) findViewById(R.id.botonTu);
		 el = (Button) findViewById(R.id.botonEl);
		 ella = (Button) findViewById(R.id.botonElla);
		 eso = (Button) findViewById(R.id.botonEso);
		 nosotros = (Button) findViewById(R.id.botonNosotros);
		 vosotros = (Button) findViewById(R.id.botonVosotros);
		 ellos = (Button) findViewById(R.id.botonEllos);
		 uno = (Button) findViewById(R.id.botonUno);
		 se = (Button) findViewById(R.id.botonSe);
		 
		 yo.setOnClickListener(new OnClickListener() {
				public void onClick(View v) {				
					 mp = MediaPlayer.create(getContext(), R.raw.ami);
					 mp.start();
				}
	     });
		 
		 tu.setOnClickListener(new OnClickListener() {
				public void onClick(View v) {				
					 mp = MediaPlayer.create(getContext(), R.raw.ami);
					 mp.start();
				}
	     });
		 
		 el.setOnClickListener(new OnClickListener() {
				public void onClick(View v) {				
					 mp = MediaPlayer.create(getContext(), R.raw.ami);
					 mp.start();
				}
	     });
		 
		 
		 ella.setOnClickListener(new OnClickListener() {
				public void onClick(View v) {				
					 mp = MediaPlayer.create(getContext(), R.raw.ami);
					 mp.start();
				}
	     });
		 
		 eso.setOnClickListener(new OnClickListener() {
				public void onClick(View v) {				
					 mp = MediaPlayer.create(getContext(), R.raw.ami);
					 mp.start();
				}
	     });
		 
		 nosotros.setOnClickListener(new OnClickListener() {
				public void onClick(View v) {				
					 mp = MediaPlayer.create(getContext(), R.raw.ami);
					 mp.start();
				}
	     });
		 
		 vosotros.setOnClickListener(new OnClickListener() {
				public void onClick(View v) {				
					 mp = MediaPlayer.create(getContext(), R.raw.ami);
					 mp.start();
				}
	     });
		 ellos.setOnClickListener(new OnClickListener() {
				public void onClick(View v) {				
					 mp = MediaPlayer.create(getContext(), R.raw.ami);
					 mp.start();
				}
	     });
		 uno.setOnClickListener(new OnClickListener() {
				public void onClick(View v) {				
					 mp = MediaPlayer.create(getContext(), R.raw.ami);
					 mp.start();
				}
	     });
		 se.setOnClickListener(new OnClickListener() {
				public void onClick(View v) {				
					 mp = MediaPlayer.create(getContext(), R.raw.ami);
					 mp.start();
				}
	     });
		
		 
	 }
	 
	 private Context getContext() {
		  return this;
	  }
	 
}
